import { addEmployees } from "../api/employee";
import pageTools from "@/components/common/pageTools";

import addEmp from "@/views/employees/components/add-employee";

import treeTools from "@/views/departments/components/tree-tools";

import uploadExcel from "@/components/uploadExcel";

import ImageUpload from "@/components/ImageUpload";

import assignRole from "@/views/employees/components/assign-role";
import ThemePicker from "@/components/ThemePicker";
import lang from "@/components/lang";
import TagsView from "@/components/TagsView";

export default {
  install(Vue) {
    /* 
    //  说明Vue.component()  注册组件  内部是使用了install函数  然后这个函数身上有一个形参 
    形参表示的就是  实例对象 Vue
     */
    //console.log(Vue, 7777766666);
    Vue.component("pageTools", pageTools);
    Vue.component("addEmp", addEmp);
    Vue.component("treeTools", treeTools);
    Vue.component("uploadExcel", uploadExcel);
    Vue.component("ImageUpload", ImageUpload);
    Vue.component("assignRole", assignRole);
    Vue.component("ThemePicker", ThemePicker);
    Vue.component("lang", lang);
    Vue.component("TagsView", TagsView);
  }
};
